package com.ant.time.line.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with AS
 * User: Ant
 * Date: 2018/10/7
 * Time: 14:13
 * Name: TimeLIneItemBean
 * Description:
 *
 * @author Ant
 * @version 1.0.0
 */
public class TimeLIneItemBean extends BaseBean {
    // yyyy-MM-dd HH:mm:ss
    public static SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm");

    private int lineType;
    private int type;
    private String title;
    private String mess;
    private long time;

    public int getLineType() {
        return lineType;
    }

    public void setLineType(int lineType) {
        this.lineType = lineType;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getTimeStr() {
        String str = "";
        if (time > 0) {
            str = dateFormat.format(new Date(time * 1000));
        }
        return str;
    }
}
